package cn.truistic.enmicromsg.main.presenter;

import android.content.Context;
import android.content.Intent;

import cn.truistic.enmicromsg.main.MainMVP;

/**
 * Created by admin on 2018/6/15.
 */

public class GroupPresenter implements MainMVP.IGroupsPresenter {
    /**
     * 上下文对象
     */
    private Context mContext ;


    public GroupPresenter(Context mContext) {
        this.mContext = mContext;
    }


    /**
     * 跳转页面
     * @param cls  需要跳转的class对象
     */
    @Override
    public void startActivity(Class cls) {
        mContext.startActivity( new Intent(mContext,cls));
    }


}
